import ToolActionApi from "@/tool/http/tool-action.js";

let platformAction = ToolActionApi.init("function_platform");

const rule = {
  queryParams: [],
  extendField: "extendJson",
  formOnChange: (watchForm) => {
    let tempArray = [];
    return tempArray;
  },
  pageConfig: {},
  metaConfig: {},
  baseField: [
    {
      name: "id",
      memo: "唯一标识",
    },
  ],
};

export default async function (metadata) {
  rule.metaConfig.platform_id = {
    dictList: await platformAction.dict(),
  };
  return rule;
}
